<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/business/include/doctype.jsp" %>
<script type="text/javascript">
	function formCheck(frm) {
		function trim(txt) {
			return txt.replace(/(^\s*)|(\s*$)/g, "");
		}
		if(trim(trim(frm.userId.value)) == "") {
			alert("아이디를 입력하세요.");
			frm.userId.value="";
			frm.userId.focus();
			return;
		}
		if(trim(trim(frm.userPw.value)) == "") {
			alert("비밀번호를 입력하세요.");
			frm.userPw.value="";
			return;
		}
		frm.submit();
	}
</script>
</head>
<body>
	<div id="wrap">
		<div class="header">
			<h1>로그인</h1>
		</div><!-- // header -->
		<div class="login">
			<div class="form">
				<form name="form" action="${requestScope.contextPath}/business/login/webLogin.do" method="post">
					<fieldset>
						<legend>로그인</legend>
							<p><label for="uid"><span>아이디</span></label><input type="text" name="userId" id="userId" style="ime-mode:disabled;" /></p>
							<p><label for="pwd"><span>비밀번호</span></label><input type="password" name="userPw" id="userPw" /></p>
							<p class="btn">
								<img src="${requestScope.contextPath}/images/btn/btn_login.gif" alt="로그인" onclick="formCheck(document.form);" />&nbsp;&nbsp;
								<img src="${requestScope.contextPath}/images/btn/btn_reset2.gif" alt="취소" onclick="document.form.userId.value='';document.form.userPw.value='';" />
							</p>
					</fieldset>
				</form>
			</div>
		</div><!-- // login -->
	</div><!-- // wrap -->
</body>
</html>